# Author:Zhang Yu
import os
class Atm:
    """
    atm 类
    """
    def __init__(self,user):
        self.user = user
        self.__button = None

    @property #把方法变成静态属性
    def click(self):
        print("click",self.__button)

    @click.setter #设置
    def bbb(self,button):
        print("click: ",button)
        self.__button = button

    @click.deleter
    def bbb(self, button):
        del self.__button

d = Atm("asd")
d.bbb = "X"